 #define _CRT_SECURE_NO_WARNINGS 1
#include "Queue.h"
void QueueTest1()
{
	int size;
	struct Queue st;
	QueueInit(&st);
	QueuePush(&st,1);
	QueuePush(&st,2);
	//QueuePop(&st);
	QueuePush(&st,3);
	QueuePush(&st,4);
	size= QueueSize(&st);
	printf("size=%d\n", size);
	QueNode* cur = st.head;
	while (cur)
	{
		cur = cur->next;
		printf("%d ", QueueTop(&st));
		QueuePop(&st);
		
	}
	size = QueueSize(&st);
	printf("size=%d\n", size);
	QueueDestroy(&st);
}
int main()
{
	QueueTest1();
	return 0;
}